package com.zhaokuner.springboot.config;

/**
 * PropertySourceFactory的加载时机早于Spring Beans容器所以独立加载用于参数入spring环境，优先级低于application.yml
 */

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author zhaokuner
 */
@Configuration
@ConditionalOnProperty(prefix = "spring.cloud.config", value = "enabled", havingValue = "true")
@PropertySource(value = "classpath:spring-cloud-config-client-starter-default.yml",
        name = "spring-cloud-config-client-starter-default", factory = FrameworkPropertySourceFactory.class)
public class SpringbootConfigLoader {
}
